/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aptech.eproject.logictics.dao.thinh.ManageTrip;

import java.util.Dictionary;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author HOANGTHINH
 */
@Remote
public interface AddTripRemote {

    public void initTripService();

    public java.util.List listVehicleOfBranch(int branchId);

    public void saveVehicle(java.lang.String vehicleId);

    public int getWeightLimit(java.lang.String vehicleId);

    public void cancelTripService();

    public java.util.List getListTripFinished();

    public java.util.List getListTrip();

    public boolean isTripOfBranch(int tripId, int branchId);

    public java.util.List getListNextBranch(int branchId);

    public java.util.List addRouteToTrip(java.util.List<String> lstRouteAddInTrip);

    public java.util.List removeRouteFromTrip(java.util.List<String> lstRouteRemoveFromTrip);

    public double isReachWeightLimit();

    public java.util.Dictionary addPackageInTrip(List lstPackageAddInTrip,Dictionary<Integer, Integer> invalidPackages);

    public java.lang.String getMessage(java.util.Dictionary dictInvalidPackage);

    public void removePackageFromTrip(java.util.List<java.lang.Integer> lstPackageFromTrip);

    public boolean addTrip(java.util.Date startDate);

    public java.util.Dictionary<String, java.lang.Integer> getDictRouteOfTrip();

    public boolean removeTrip(int tripId, int branchId);

    public java.util.Dictionary<java.lang.Integer, java.lang.Integer> getDictPackageOfTrip();

    public boolean isPackageAddToTrip(int packageId);

    public java.util.List listPackageInWarehouse(int branchId);

    public java.util.List listPackageInTrip(int tripId);

    public aptech.eproject.logictics.db.Branch getBranch(int branchId);

    public java.lang.String getMessageHTML(java.util.Dictionary dictInvalidPackage);

    public java.util.List lstTripRouteASC(int tripId);

    

    
    
}
